package org.xiaov.config.autoconfigure;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/5/19 21:39
 */
@Component
@ConfigurationProperties(prefix = "upload.oss")
@Getter
@Setter
public class UploadOSSProperties {
    /**
     * 上传阿里云地址
     */
    private String endpoint = "https://example.oss-cn-beijing.aliyuncs.com";
    /**
     * 访问控制账号
     */
    private String accessKeyId;
    /**
     * 访问控制密码
     */
    private String accessKeySecret;
    /**
     * 创建的bucket名
     */
    private String bucketName;
    /**
     * 存放的文件夹
     */
    private String fileHost = "upload";
}
